home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
- CLS
- REM Terry E. Mercer may be reached at:
- REM 4184 Hilsinger Road, Phoenix, OR 97535
- REM
- REM Micromedia Publishers, Inc. may be reached at:
- REM 505 NE 7th, Grants Pass, OR 97526
- REM 1-503-474-1111 or 1-503-471-4133 (both Voice) or
- REM 1-503-474-2486 or 1-503-471-8836 (both Fax)
- REM
- ECHO.
- ECHO.
- ECHO.
- ECHO This Program is to assist in the Installation of programs
- ECHO found on this CD, using the MMPI & PBG CD Rom Launcher
- ECHO ══════════════════════════════════════════
- ECHO Written by Terry E. Mercer c 8 August 1995
- ECHO This batch program is Copyright Protected, and may be used
- ECHO ONLY as specified by Terry Mercer or MicroMedia Publishers, Inc.
- ECHO.
- ECHO.
- ECHO NOTE: This program can also Un-Install (Delete and Remove)
- ECHO everything it installs! It has done so safely and
- ECHO perfectly on all of our test systems running DOS 6.xx!
- ECHO.
- ECHO Help is available by typing in ZZ /? at the DOS prompt.
- ECHO.
- ECHO.
- ECHO.
- PAUSE
- cls
- IF "%1"=="/?" GOTO HELP
- IF !%1==! GOTO NOCHOICE
-
- IF "%1"=="C:" GOTO HELP
- IF "%1"=="c:" GOTO HELP
- IF "%1"=="D:" GOTO HELP
- IF "%1"=="d:" GOTO HELP
- IF "%1"=="E:" GOTO HELP
- IF "%1"=="e:" GOTO HELP
- IF "%1"=="F:" GOTO HELP
- IF "%1"=="f" GOTO HELP
- IF "%1"=="G:" GOTO HELP
- IF "%1"=="g:" GOTO HELP
- IF "%1"=="C" GOTO HELP
- IF "%1"=="c" GOTO HELP
- IF "%1"=="D" GOTO HELP
- IF "%1"=="d" GOTO HELP
- IF "%1"=="E" GOTO HELP
- IF "%1"=="e" GOTO HELP
- IF "%1"=="F" GOTO HELP
- IF "%1"=="f" GOTO HELP
- IF "%1"=="G" GOTO HELP
- IF "%1"=="g" GOTO HELP
-
- IF NOT EXIST C:\DOS\CHOICE.COM GOTO WRONGDOS
-
- REM DRIVES C: AND D: WILL AUTOMATICALLY BE CHECKED... IF THE END-USERS
- REM CD DRIVE IS D: (for example) THEN IT WILL TRY TO DELETE IT... IT MAY
- REM FAIL AND NOT CHECK THE REST. LOOK FOR MENU.EXE (NOT XCOPIED TO HDD)
- REM FOR FAIL-SAFE. MOST PEOPLE WILL BE INSTALLING TO C: DRIVE OR WILL
- REM HAVE A CD DRIVE WITH A LETTER OTHER THAN D: (A CD D: is immpossible
- REM to have with more than one hard drive, therefore C: is most common
- REM place to install the CD).
- REM EXCEPTIONS: Stacker, Drive Space, & Double Space Drives (Logical drives).
-
- IF "%2"=="DELETE" GOTO DELET
-
- IF "%2"=="E:" GOTO HARDE
- IF "%2"=="F:" GOTO HARDF
- IF "%2"=="G:" GOTO HARDG
-
- IF "%3"=="E:" GOTO HARDE
- IF "%3"=="F:" GOTO HARDF
- IF "%3"=="G:" GOTO HARDG
-
- GOTO BEGIN
-
- :WRONGDOS
- ECHO.
- ECHO.
- ECHO This Program requires DOS 6.xx or better to run properly.
- ECHO ══════════════════════════════════════════
- ECHO.
- ECHO If you see this message, either you do NOT have MicroSoft
- ECHO DOS v6.xx or the CHOICE command has been deleted. Either
- ECHO copy the Choice command back in your DOS directory, or
- ECHO consult your DOS manual to manually copy the programs to
- ECHO their own directories.
- ECHO.
- ECHO We will make one last attempt to install the programs
- ECHO properly... the program you selected will be placed in
- ECHO a directory named MMPI in the C drive ("C:\MMPI>").
- ECHO.
- PAUSE
- GOTO NOCHOICE
-
- :NOCHOICE
- IF NOT Exist C:\DOS\XCOPY.EXE GOTO SLOW
- IF NOT EXIST ZZ.BAT GOTO NOCD
- ECHO.
- ECHO This will take a few minutes, please be patient...
- ECHO.
- ECHO.
- ECHO Remember, only files ending in EXE, COM, and BAT can start
- ECHO programs. Many programs will require running SETUP, if such
- ECHO a file (program) exists. If you do NOT want to install the
- ECHO program at this time, hold down the Control (Ctrl) key and
- ECHO press the letter C. Answer Y(es) to the question "Terminate Batch?"
- ECHO.
- ECHO.
- PAUSE
- XCOPY *.* C:\MMPI\*.* /V
- GOTO RUN1
-
- :SLOW
- MD C:\%1
- COPY *.* C:\%1\*.*
- CD C:\%1
- C:
- CALL MMPI.BAT
- GOTO END
-
- :NOTHING
- ECHO.
- ECHO.
- ECHO The program was not able to correctly access the necessary
- ECHO information to complete the installation to your hard disk.
- ECHO.
- ECHO The version of DOS you have on your system is either too
- ECHO old or incomplete. Consult your DOS manual to manually copy
- ECHO the programs to their own directories. We can not guarantee
- ECHO that the programs will work correctly at this point.
- ECHO.
- ECHO.
- GOTO END
-
- :NOCD
- ECHO.
- ECHO.
- ECHO You must start this program directly from the CD Rom Drive,
- ECHO from DOS... with your CD as the default drive. Example "D:\>,"
- ECHO where "D" is the letter designating your CD Rom drive.
- ECHO.
- ECHO ...Please try again...
- ECHO.
- GOTO END
-
- :BEGIN
- ECHO.
- ECHO.
- ECHO Please press the letter corresponding to your hard drive
- ECHO (C, D, E, F, and G are valid drive choices)
- ECHO.
- ECHO.
- CHOICE /c:cdefg /n
- if errorlevel 5 goto DRIVE5
- if errorlevel 4 goto DRIVE4
- if errorlevel 3 goto DRIVE3
- if errorlevel 2 goto DRIVE2
- if errorlevel 1 goto DRIVE1
-
- :DRIVE1
- md c:\%1
- xcopy *.* /V c:\%1
- cd c:\%1
- c:
- GOTO RUN
-
- :DRIVE2
- md d:\%1
- xcopy *.* /v d:\%1
- cd d:\%1
- d:
- GOTO RUN
-
- :DRIVE3
- md e:\%1
- xcopy *.* /v e:\%1
- cd e:\%1
- e:
- GOTO RUN
-
- :DRIVE4
- md f:\%1
- xcopy *.* /v f:\%1
- cd f:\%1
- f:
- GOTO RUN
-
- :DRIVE5
- md g:\%1
- xcopy *.* /v g:\%1
- cd g:\%1
- g:
- GOTO RUN
-
- :RUN
- IF !%1==! GOTO RUN1
- GOTO RUNIT
-
- :RUNIT
- ECHO.
- ECHO.
- ECHO Do you want to Run the program from your hard drive NOW?
- ECHO.
- CHOICE /c:yn /n /t:Y,10
- IF ERRORLEVEL 2 GOTO DELET
- IF ERRORLEVEL 1 GOTO RUN2
-
- :RUN1
- if not exist mmpi.bat goto Sorry
- C:
- CD\MMPI
- CALL C:\MMPI\mmpi.bat
- GOTO RUNOVER
-
- :RUN2
- CALL %1
- GOTO RUNOVER
-
- :RUNOVER
- echo.
- echo.
- echo You may need to run the Setup program (if one exists) if the
- echo game locked up or did not seem to work properly. Just enter
- echo the directory C:\%1 then type %1 and press ENTER.
- echo.
- echo (Where C: is your hard drive designation).
- echo.
- echo Running setup (if it exists) will allow you to change sound settings
- echo mouse, joystick, and/or any other settings appropriate to THAT program.
- echo.
- echo.
- pause
- goto delet
-
- :DELET
- IF !%1==! GOTO SORRY
- GOTO UNINSTALL
-
- :UNINSTALL
- IF NOT EXIST C:\DOS\CHOICE.COM GOTO DELET2
- ECHO.
- ECHO.
- ECHO Are you sure you want to Delete this Program?
- ECHO.
- CHOICE /c:yn /n /t:Y,60
- IF ERRORLEVEL 2 GOTO END
- IF ERRORLEVEL 1 GOTO DELET3
-
- :DELET2
- ECHO.
- ECHO.
- ECHO Do you want to Delete this Program from your hard disk?
- ECHO.
- ECHO If you DO then press the enter key... if not, hold down
- ECHO the Control (CTRL) key and press the letter C then Y(es).
- ECHO.
- ECHO.
- PAUSE
- GOTO DELET3
-
- :DELET3
- IF EXIST C:\%1\ZZ.BAT GOTO HARDC
- IF EXIST D:\%1\ZZ.BAT GOTO HARDD
- IF EXIST E:\%1\ZZ.BAT GOTO HARDE
- IF EXIST F:\%1\ZZ.BAT GOTO HARDF
- IF EXIST G:\%1\ZZ.BAT GOTO HARDG
- GOTO SORRY
-
- :HARDC
- C:
- CD\
- CD %1
- IF NOT EXIST ZZ.BAT GOTO SORRY
- ECHO The Program (and files) were found on Drive C - do you want to continue?
- GOTO NEXT
-
- :HARDD
- IF EXIST MENU.EXE GOTO HELP
- D:
- CD\
- CD %1
- IF NOT EXIST ZZ.BAT GOTO SORRY
- ECHO The Program (and files) were found on Drive D - do you want to continue?
- GOTO NEXT
-
- :HARDE
- E:
- CD\
- CD %1
- IF NOT EXIST ZZ.BAT GOTO SORRY
- ECHO The Program (and files) were found on Drive E - do you want to continue?
- GOTO NEXT
-
- :HARDF
- F:
- CD\
- CD %1
- IF NOT EXIST ZZ.BAT GOTO SORRY
- ECHO The Program (and files) were found on Drive F - do you want to continue?
- GOTO NEXT
-
- :HARDG
- G:
- CD\
- CD %1
- IF NOT EXIST ZZ.BAT GOTO SORRY
- ECHO The Program (and files) were found on Drive G - do you want to continue?
- GOTO NEXT
-
- :NEXT
- ECHO.
- ECHO Please wait... this may take a few mintues, depending on
- ECHO the speed of your computer and hard disk drive.
- ECHO.
- ECHO. Y | DEL *.*
- CD\
- RD %1
- GOTO END
-
- :SORRY
- ECHO.
- ECHO Sorry, but this program is not working correctly on your computer.
- ECHO Or has been installed to a directory with a name other than %1
- ECHO See your DOS manual or consult a smart friend to Un-Install this.
- ECHO.
- pause
- goto HELP
-
- :HELP
- ECHO.
- ECHO.
- ECHO This file is intended to assist the end-user in the installation
- ECHO and Un-Installation of DOS based programs found on MMPI CD Roms.
- ECHO Parameters must be given if ran outside of the menu program. Please
- ECHO consult your DOS manual or a smart friend for more details.
- ECHO.
- ECHO %%1 is the name of the EXE, COM, or BAT file used to start the
- ECHO program. It will also be the same name as the directory it
- ECHO creates for the program on the hard drive.
- ECHO.
- ECHO %%2 is to determine whether or not to DELETE or Un-Install.
- ECHO.
- ECHO %%3 is for a Stacker, Double Space or Drive Space drive if the
- ECHO CD is drive D and the program was installed to drive E,F, or G.
- ECHO.
- ECHO.
- ECHO Example: ZZ %1 DELETE F:
- ECHO.
- ECHO ZZ is %%1 %1 is the executable DELETE runs Un-Install mode F: is F drive.
- ECHO.
- ECHO.
- GOTO END
-
- :end
-